package cn.bklovezz.yixiantong.ram.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@ApiModel(value = "登录用户信息")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AdminLoginUser {
  @NotNull
  @ApiModelProperty(value = "用户名", required = true)
  private String username;

  @NotNull
  @Min(6)
  @Max(20)
  @ApiModelProperty(value = "密码", required = true)
  private String password;
}
